package com.imooc.controller.center;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@ApiIgnore
@RestController
@RequestMapping("/redis")
public class RedisController {
    
    
    @GetMapping("/hello")
    public Object hello() {
        return "Hello World~";
    }

    @GetMapping("/set")
    public Object set(String  key,String value) {

        return "ok";
    }

}
